package com.b511.swpu.cementbackend.dto.input;

import com.b511.swpu.cementbackend.entity.MetaSystemUnit;
import com.b511.swpu.cementbackend.entity.SysRole;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

@Getter
@Setter
@Accessors(chain = true)
public class SysUserInputDto {

    @NotBlank(message = "用户名为空")
    private String username;

    @NotBlank
    @Size(min = 6)
    private String password;

    private String name;

    private boolean isEnable;

    private String birthDay;

    private boolean isMan;

    private List<String> roles;
}
